/**
 * 
 */
package org.swing.utility.common.jmx;

import javax.management.Attribute;
import javax.management.AttributeList;
import javax.management.AttributeNotFoundException;
import javax.management.DynamicMBean;
import javax.management.InvalidAttributeValueException;
import javax.management.MBeanException;
import javax.management.MBeanInfo;
import javax.management.ReflectionException;

/**
 * @author lqnhu
 *
 */
public class WrappingDynamicMBean implements DynamicMBean {
	protected DynamicMBean wrapped;

	public Object getAttribute(String att) throws AttributeNotFoundException,
			MBeanException, ReflectionException {
		return wrapped.getAttribute(att);
	}

	public AttributeList getAttributes(String[] atts) {
		return wrapped.getAttributes(atts);
	}

	public MBeanInfo getMBeanInfo() {
		return wrapped.getMBeanInfo();
	}

	public Object invoke(String action, Object[] args, String[] sig)
			throws MBeanException, ReflectionException {
		return wrapped.invoke(action, args, sig);
	}

	public void setAttribute(Attribute att) throws AttributeNotFoundException,
			InvalidAttributeValueException, MBeanException, ReflectionException {
		wrapped.setAttribute(att);
	}

	public AttributeList setAttributes(AttributeList atts) {
		return wrapped.setAttributes(atts);
	}
}
